﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;

namespace Digitalmes.Model.MessageManage
{
    // 消息记录
    public class Message : BasePoco
    {
        [Display(Name = "发送者")]
        public string Sender { get; set; }

        [Display(Name = "接收者")]
        public string Receiver { get; set; }

        [Display(Name = "群组")]
        public string Group { get; set; }

        [Display(Name = "内容")]
        [Required(ErrorMessage = "内容不能为空")]
        public string Content { get; set; }

        [Display(Name = "发送时间")]
        public DateTime SendTime { get; set; }

        [Display(Name = "消息类型")]
        public MessageType MessageType { get; set; }
    }
}
